#ifndef _BSP_RELAY_H_
#define _BSP_RELAY_H_

#include <stdio.h>
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/uart.h"
#include "driver/gpio.h"
#include "driver/i2c.h"
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "freertos/queue.h"
#include <inttypes.h>
#include "sdkconfig.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "rom/ets_sys.h"
#include "esp_system.h"
#include "driver/gpio.h"
#include "driver/spi_master.h"
#include "driver/spi_common.h"
#include "hal/gpio_types.h"
#include "string.h"

#define GPIO_RELAY_IN       19

#define RELAY_OUT(x)        gpio_set_level(GPIO_RELAY_IN, x?1:0)

void Relay_GPIO_Init(void);//继电器引脚初始化
void Set_Relay_Switch(unsigned char state);//设置继电器状态

#endif